import QtQuick 2.6
import Qt.labs.controls 1.0
import QtQuick.Layouts 1.3


PopupFrame {
    id: view

    contentHeight: 128
    property alias value: pBar.value
    property alias maximumValue: pBar.to
    property string description: descriptionText.text

    Pane {
        ColumnLayout {
            id: col
            anchors.verticalCenter: parent.verticalCenter
            width: parent.width
            spacing: 9

            ProgressBar {
                id: pBar
                Layout.fillWidth: true
                from: 0
                onValueChanged: {
                    if (value == maximumValue) {
                        close()
                    }
                }
            }

            Label {
                id: descriptionText
                horizontalAlignment: Text.AlignHCenter
                wrapMode: Text.WrapAtWordBoundaryOrAnywhere

                anchors.horizontalCenter: parent.horizontalCenter
            }

        }
    }

    footer: null
}



